<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>GraphPaths:  File sorgente src/nodo.h</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">GraphPaths
   &#160;<span id="projectnumber">1</span>
   </div>
   <div id="projectbrief">Creazione di grafi e calcolo dei percorsi minimi</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generato da Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Ridefinizioni di tipo (typedef)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Definizioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pagine</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">nodo.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="nodo_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef NODO_H</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define NODO_H</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;climits&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="elemento__ui_8h.html">elemento_ui.h</a>&quot;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="keyword">using namespace </span>std;</div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;</div>
<div class="line"><a name="l00010"></a><span class="lineno"><a class="line" href="classNodo.html">   10</a></span>&#160;<span class="keyword">class </span><a class="code" href="classNodo.html">Nodo</a> : <span class="keyword">public</span> <a class="code" href="classElemento__ui.html">Elemento_ui</a></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;{</div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;    <span class="keyword">public</span>:</div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;      <a class="code" href="classNodo.html">Nodo</a>();</div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;      </div>
<div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classNodo.html#a7d59f2dfc6505015d7ed9868df471f42">   24</a></span>&#160;      <a class="code" href="classNodo.html#a7d59f2dfc6505015d7ed9868df471f42">Nodo</a>(gdouble x, gdouble y, guint indice) </div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;      {</div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;          set_x(x);</div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;          set_y(y);</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;          this-&gt;indice = indice;</div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;          set_precedente(NULL);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;          set_distanza(G_MININT);</div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;          set_selected(FALSE);</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;          set_over(FALSE);</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;          raggio = 25.0;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;      }</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;      </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;      <span class="keyword">virtual</span> ~<a class="code" href="classNodo.html">Nodo</a>();</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;      </div>
<div class="line"><a name="l00042"></a><span class="lineno"><a class="line" href="classNodo.html#a3fb9bd150f3690223a67f0e96a96e02d">   42</a></span>&#160;      guint <a class="code" href="classNodo.html#a3fb9bd150f3690223a67f0e96a96e02d">get_indice</a>() { <span class="keywordflow">return</span> indice; }</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;      </div>
<div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="classNodo.html#a01cbee8d0bf00fd0e4d4500f06dc5962">   48</a></span>&#160;      gint <a class="code" href="classNodo.html#a01cbee8d0bf00fd0e4d4500f06dc5962">get_distanza</a>() { <span class="keywordflow">return</span> distanza; }</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;      </div>
<div class="line"><a name="l00053"></a><span class="lineno"><a class="line" href="classNodo.html#ad1f2c30b7c32e5d2acf1a67cf1a5da73">   53</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classNodo.html#ad1f2c30b7c32e5d2acf1a67cf1a5da73">set_distanza</a>(<span class="keywordtype">int</span> val) { distanza = val; }</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;      </div>
<div class="line"><a name="l00057"></a><span class="lineno"><a class="line" href="classNodo.html#a5e3087d0c3511bf0a42a14bbce860482">   57</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classNodo.html#a5e3087d0c3511bf0a42a14bbce860482">set_distanza_infinita</a>() { distanza = G_MAXINT; }</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;      </div>
<div class="line"><a name="l00063"></a><span class="lineno"><a class="line" href="classNodo.html#a47d3877c9987963444f8a36fc6f410be">   63</a></span>&#160;      <a class="code" href="classNodo.html">Nodo</a>* <a class="code" href="classNodo.html#a47d3877c9987963444f8a36fc6f410be">get_precedente</a>() { <span class="keywordflow">return</span> precedente; }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;      </div>
<div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="classNodo.html#aa7e078dbad3fec48a7b39a954bf7c44a">   69</a></span>&#160;      <span class="keywordtype">void</span> <a class="code" href="classNodo.html#aa7e078dbad3fec48a7b39a954bf7c44a">set_precedente</a>(<a class="code" href="classNodo.html">Nodo</a>* val) { precedente = val; }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;      </div>
<div class="line"><a name="l00075"></a><span class="lineno"><a class="line" href="classNodo.html#aa7a9da39a1b399c81dd8fd2b00aee6a5">   75</a></span>&#160;      gdouble <a class="code" href="classNodo.html#aa7a9da39a1b399c81dd8fd2b00aee6a5">get_raggio</a>() { <span class="keywordflow">return</span> raggio; }</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> update(gdouble x, gdouble y);</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> draw(cairo_t* &amp;cr);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">virtual</span> gboolean intersect(gdouble x, gdouble y);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <span class="keyword">protected</span>:</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <span class="keyword">private</span>:</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;        guint indice; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        gint distanza; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <a class="code" href="classNodo.html">Nodo</a>* precedente; </div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        gdouble raggio; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;};</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="preprocessor">#endif // NODO_H</span></div>
<div class="ttc" id="classNodo_html_a7d59f2dfc6505015d7ed9868df471f42"><div class="ttname"><a href="classNodo.html#a7d59f2dfc6505015d7ed9868df471f42">Nodo::Nodo</a></div><div class="ttdeci">Nodo(gdouble x, gdouble y, guint indice)</div><div class="ttdef"><b>Definition:</b> nodo.h:24</div></div>
<div class="ttc" id="classNodo_html_ad1f2c30b7c32e5d2acf1a67cf1a5da73"><div class="ttname"><a href="classNodo.html#ad1f2c30b7c32e5d2acf1a67cf1a5da73">Nodo::set_distanza</a></div><div class="ttdeci">void set_distanza(int val)</div><div class="ttdef"><b>Definition:</b> nodo.h:53</div></div>
<div class="ttc" id="classElemento__ui_html"><div class="ttname"><a href="classElemento__ui.html">Elemento_ui</a></div><div class="ttdef"><b>Definition:</b> elemento_ui.h:7</div></div>
<div class="ttc" id="elemento__ui_8h_html"><div class="ttname"><a href="elemento__ui_8h.html">elemento_ui.h</a></div></div>
<div class="ttc" id="classNodo_html_a01cbee8d0bf00fd0e4d4500f06dc5962"><div class="ttname"><a href="classNodo.html#a01cbee8d0bf00fd0e4d4500f06dc5962">Nodo::get_distanza</a></div><div class="ttdeci">gint get_distanza()</div><div class="ttdef"><b>Definition:</b> nodo.h:48</div></div>
<div class="ttc" id="classNodo_html_a5e3087d0c3511bf0a42a14bbce860482"><div class="ttname"><a href="classNodo.html#a5e3087d0c3511bf0a42a14bbce860482">Nodo::set_distanza_infinita</a></div><div class="ttdeci">void set_distanza_infinita()</div><div class="ttdef"><b>Definition:</b> nodo.h:57</div></div>
<div class="ttc" id="classNodo_html"><div class="ttname"><a href="classNodo.html">Nodo</a></div><div class="ttdef"><b>Definition:</b> nodo.h:10</div></div>
<div class="ttc" id="classNodo_html_a47d3877c9987963444f8a36fc6f410be"><div class="ttname"><a href="classNodo.html#a47d3877c9987963444f8a36fc6f410be">Nodo::get_precedente</a></div><div class="ttdeci">Nodo * get_precedente()</div><div class="ttdef"><b>Definition:</b> nodo.h:63</div></div>
<div class="ttc" id="classNodo_html_a3fb9bd150f3690223a67f0e96a96e02d"><div class="ttname"><a href="classNodo.html#a3fb9bd150f3690223a67f0e96a96e02d">Nodo::get_indice</a></div><div class="ttdeci">guint get_indice()</div><div class="ttdef"><b>Definition:</b> nodo.h:42</div></div>
<div class="ttc" id="classNodo_html_aa7a9da39a1b399c81dd8fd2b00aee6a5"><div class="ttname"><a href="classNodo.html#aa7a9da39a1b399c81dd8fd2b00aee6a5">Nodo::get_raggio</a></div><div class="ttdeci">gdouble get_raggio()</div><div class="ttdef"><b>Definition:</b> nodo.h:75</div></div>
<div class="ttc" id="classNodo_html_aa7e078dbad3fec48a7b39a954bf7c44a"><div class="ttname"><a href="classNodo.html#aa7e078dbad3fec48a7b39a954bf7c44a">Nodo::set_precedente</a></div><div class="ttdeci">void set_precedente(Nodo *val)</div><div class="ttdef"><b>Definition:</b> nodo.h:69</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generato Mar 1 Lug 2014 08:40:17 per GraphPaths da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
